package hrc.wow_notifier.service;

import java.util.ArrayList;
import java.util.List;

import hrc.wow_notifier.service.impl.ChinaServerNotifyService;

public class NotifyServiceFactory {
	private static final int CHINA_MODE=0; 
	public static NotifyService createNotifyService(int mode) {
		switch (mode) {
		case CHINA_MODE:
			return new ChinaServerNotifyService();
		default:
			return new NotifyService() {
				
				@Override
				public List<String> loadServerName() {
					List<String> serverList=new ArrayList<String>(2);
					serverList.add("test server1");
					serverList.add("test server2");
					return serverList;
				}

				@Override
				public boolean isServerOnline(String serverName) {
					return false;
				}
				
				@Override
				protected String getServerUrl() {
			
					return null;
				}
				
				@Override
				protected boolean analyseServerStatus(String result, String serverName) {
				
					return false;
				}
				
				@Override
				protected List<String> analyseServerName(String result) {
			
					return null;
				}
			};
		}
	}
}
